Javascript to pure python translator. (not finished)