Python Method Chaining Python Compiler