Using Malloc For An Array In Python For Loop