Update quick_operators.py

cosmetic changes, but also a few idiomatic clean ups.  

like checking if a boolean is `True` is more straightforward in python. `if some_boolean: do_something()`rather than `if some_boolean == True: do_something()`. There's a few more items on my list, but let's keep these patches small.