Python Method Chaining Python Interpreter Pycharm