fix bug in Python, yipee...