Update polar.py simply to use %= notation