Moved all constants to interfaces.py.
Moved method to get best fitting unit to utils module.