Fix broken Python syntax