[WIP] Completed Python side, although in a dirty way, with some hacks