xxxxxxxxxx
The most prevalent library for timezones in python is pytz, which can be installed by:
pip install pytz
It allows you to manipulate times by assigning times to timezones using Olsen timezones (e.g. Europe/London).
xxxxxxxxxx
from time import gmtime, strftime
print(strftime("%z", gmtime()))