From http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python