Changed a loop around line920 in python.c to fix bug #44