Psycopg2 Connection Timeout