updated python scripts, app requesting close connection