Made some changes to allow for bytecompiling python.
Needed for bytecompiling python files
Needed to bytecompile python files with cmake