take 2: py2.6 compat workarounds for gnupg