python bindings: core — PEP8 compliance