Use memoryview for bytea fields instead of psycopg2.Binary

See http://initd.org/psycopg/docs/usage.html#adaptation-of-python-values-to-sql-types