readded proper python bindings and reworked some minor stuff