Pythonic way of returning and checking method execution

Published --