Move all the code that is not nested to under a def main, and make sure it works fine.
As a starter the files under //utils/ should be converted.
For the records, this only fails because in order to get the 'pydocs' out of the python files the script is 'executed'. If anything is not nested the code get executed and things go sour.
I just pushed the initial work on this to master. It includes a fix for all the utils/ files and the logger.py file. There are still over 50 files that need changes though.
Move all the code that is not nested to under a def main, and make sure it works fine. As a starter the files under //utils/ should be converted.
For the records, this only fails because in order to get the 'pydocs' out of the python files the script is 'executed'. If anything is not nested the code get executed and things go sour.
This is a subtask of #7