new version with python3 and postgres.