Implementing Operator In Python