Added a python file and changed python structure