Python development is highly efficient, but it is too easy to decompile
Use Uncopyle decompile to get almost the same thing as the original code
git clone https://github.com/gstarnberger/uncompyle.git
CD uncompyle/
sudo./setup.py Install
uncompyler.py THANK_GOODNESS_THIS_STILL_EXISTS.PYC > recovered_file.py
Code obfuscation is a good idea, but its tools are pyobfuscate, and have long ceased to maintain
The code is all translated into Base64, the method of conversion is not advisable, the code is ugly, directly with the B64decode, it is transformed over
>>> Import Base64
>>> mycode = "print ' Hello world! '"
>>> secret = Base64.b64encode (Mycode)
>>> Secret
' Chjpbnqgj2hlbgxvifdvcmxkicen '
>>> Mydecode = Base64.b64decode (Secret)
>>> eval (Compile (mydecode, ' <string> ', ' exec '))
Hello world!
Is it that the only way to do this is to mix python with C + +?
Ref
Http://stackoverflow.com/questions/8189352/decompile-python-2-7-pyc
Python code secrecy