Python3 port of Chris AtLee's Python PAM module.