In python, login, search, get metadata, logout from a RETS server