Python Postgresql Execute Format Factory