Add password checking via a python wrapper