bugfix for python