Python-krb5 provides Python functions that wraps the Kerberos 5 C API.