Move PG setup to Python script.