Hey. You should turn on all statement logging and tail the postgresqllogs to see what your python app is really doing.