added some python code and some build-related stuff