Python Method Chaining Javascript Snake Codec