Use more pythonic grammar.

This is more pythonic and promoted in python efl.
Guided by davemds. Thanks.