Benzea/python3 update
Straight forward port to python3. There is a bit of oddity with byte string vs unicode string. Other than that, only fix is to use math.ceil instead of round in one case as rounding was changed (however, this should have been math.ceil all along).
The separate test_dim change arose as I thought that might fix the failure caused by the rounding bug.