Python Http Post Json Javascript Setinterval Stop