fix Python bindings (requiring Python 3 now)