appendix python convert the program itself to python using to run the unit testing suite on the resulting code and fix all of the issues that arise there are varying strategies for doing this if you're feeling luckyyou can always tell to to just fix everything and see what happens if you're more cautiousyou might start by having to fix the really obvious things (printexcept statementsxrange()library module namesetc and then proceed in more piecemeal manner with the remaining issues by the end of this processyour code should pass all unit tests and operate in the same manner as before in theoryit is possible to structure code in way so that it both runs in python and automatically translates to python without any user intervention howeverthis will require very careful adherence to modern python coding conventions--at the very least you will absolutely need to make sure there are no warnings in python if the automatic translation process requires very specific use of to (such as running only selected set of fixers)you should probably write shell script that automatically carries out the required operations as opposed to requiring users to run to on their own simultaneous python and python support final question concerning python migration is whether or not it' possible to have single code base that works unmodified on python and python although this is possible in certain casesthe resulting code runs the risk of becoming contorted mess for instanceyou will have to avoid all print statements and make sure all except clauses never take any exception values (extracting them from sys exc_info(insteadother python features can' be made to work at all for exampledue to syntax differencesthere is no possible way to use metaclasses in way that would be portable between python and python thusif you're maintaining code that must work on python and your best bet is to make sure your code is as clean as possible and runs under python make sure you have unit testing suiteand try to develop set of to fixes to make automatic translation possible one case where it might make sense to have single code base is with unit testing test suite that operates without modification on python and python could be useful in verifying the correct behavior of the application after being translated by to participate as an open-source projectpython continues to be developed with the contributions of its users for python especiallyit is critically to report bugsperformance problemsand other issues to report buggo to feedback makes python better for everyone lib fl ff