Python Make A Post Request Javascript Foreach With Index