Python Method Chaining Javascript Snakes