Fix PEP-8 formatting and 'datatime' imported byt not used