Python Method Chaining Python Interpreter Vs Code