adding code to support async and pam client capabilities with python v2 and v3