Python Time Function Format In R