title: Convert timestamps of "yyyy-MM-dd'T'HH:mm:ss.SSSZ" format in Python
body: <p>I have a log file with timestamps like "2012-05-12T13:04:35.347-07:00". I want to convert each  timestamp into a number so that I sort them by ascending order based on time. </p>
  
  <p>How can I do this in Python? In Java I found out that I can convert timestamps for such format with <code>SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")</code> but for Python I couldn't find anything.</p>