ssh-duphosts: compatibility with Python 2.5