fixes, few more steps to process data in python. needs cleanup and **SOME** pep8