filename refactoring + implemented calling python through pyfile + some refactoring