Init PG in python from config