Restructure

This restructuring is needed to provide proper python package project. Please see the diffs for changes. No functional changes should be done, only restructuring related.
I'm aware that there was some bug in this part of code. Did you commented it out because of that? Could you write that issue to issue tracker?