I notice that python only pre-compiles imported modules and not the main script. The only way I seem to be able to get this to happen is to run python -c "import mainscript" Am I missing something? Thanks, Jeff