Python: Fixed compile bug