Python Loop Over String Javascript Programmer