Getting the timezone offset in Python from a timezone ignoring DST
<p>What is the correct way to get an UTC offset from a timezone in python?
I need a function to send a pytz timezone and get the timezone offset ignoring the Daylight Saving Time.</p>

<pre><code>import pytz
tz = pytz.timezone('Europe/Madrid')
getOffset(tz) #datetime.timedelta(0, 3600)
</code></pre>