try:
    offset = int('Tue, 22 Jul 2008 08:17:41 +0300'[-5:])
except:
    print('Error')
delta = timedelta(hours=offset / 100)
fmt = '%a, %d %b %Y %H:%M:%S'
time = datetime.strptime('Tue, 22 Jul 2008 08:17:41 +0200'[:-6], fmt)
python time to age part 2, timezones