A python module to code as in javascript