psql_session Session class implemented, init the object in build_docs.py try/except instead of __init__