[WIP] Python part nearly complete, some problems with json serialization