General fix

Normalized python files, 
ported code to python3
debugged (on windows)