Python Method Chaining Javascript Console Log New Line