Initial commit of python file restructuring and organizing the code