there should be a better way to do this
minor krb fixes
pyexpect needed