moving python wrapper code to new seperate python file so easier to extend