Refactoring

* Adding Python server
* some other changes