1. apt-get install libpq-dev
  2. pypy/bin/pip install psycopg2ct
  3. map CT version:
from psycopg2ct import compat
compat.register()