Port fdw to python 3
Fix bytea column type in python 3