change custom create from pl/pgsql script to phython
some documentation updates