from datetime import datetime, timedelta
from email.utils import parsedate_tz, mktime_tz
timestamp = mktime_tz(parsedate_tz('Thu, 16 Oct 2014 01:16:17 EDT'))
utc_dt = datetime(1970, 1, 1) + timedelta(seconds=timestamp)
Преобразование строки в объект datetime