massive 'python 3' overhaul; removed psycopg2 (and pgsql)