1# 1- python -OO -m py_compile <your program.py>
2
3# 2- pip install python-obfuscator
4
5# 3- eval
6import base64
7myscript = """IyBUaGlzIGlzIGEgc2FtcGxlIFB5d
8 GhvbiBzY3JpcHQKcHJpbnQgIkhlbG
9 xvIiwKcHJpbnQgIldvcmxkISIK"""
10eval(compile(base64.b64decode(myscript),'<string>','exec'))