Python Sample Query Form