Python has a flag -O that you can execute the interpreter with. The option will generate \"optimized\" bytecode (written to .pyo files), and given twice, it wil
-O
I imagine that the heaviest users of -O are py2exe py2app and similar.
I've personally never found a use for -O directly.