Make verify python3 compatbile

Hi, this patch makes verify script compatible with Python 3, while maintaining backwards compatibility with Python 2.6 and 2.7. AFAICS this is the only Python file used at runtime, so it should make whole libreswan runtime python3 compatbile. Thanks for considering.