Python Method Chaining Javascript Snake Muthead Team