Move hourformat and fullformat to separate module. Add and adjust tests
PEP-008