Python Determine Length Of Time