Fixed date format errors with python3

With the switch to python3, division no longer rounds automatically.
Also fixed some naming issues in the interface code.