Python Method Chaining Python Idle Shell