fun with rounding.  python 2 rounds toward infinity whereas python 3 and numpy use bankers' rounding.