Fixing Python bug.