fixed Python incompatibility