I was trying the following code:
time.mktime(datetime.datetime.strptime("2016-10-17 02:35:01+00:00",
"%Y-%m-%d %H:%M:%S %z"))
It was returning the error:
ValueError: time data '2016-10-17 02:35:01+00:00' does not match format '%Y-%m-%d %H:%M:%S %z'