Its used/needed in a couple of places where psycopg2 does not change them (I think psycopg2 only changes them if they are parameters, but we are using it in other places - e.g. table names)