datetime.fromtimestamp requires a float()

Fix pep8 warning at the same time