sounds like a bug in nthe underlying python library. i'd try to track down the line of my code where it happens and check google for any reports regarding the python code called.