Fix for issue 203: Make ud_grade work on python3 for Nside>128.  Enforce integer division where needed.