Revert "minor style for for len usage and one "== None" occurrence"

This reverts commit 3cc77e21b5754566160d3e45cac851901d7d06e6.

Conflicts:
	salt/utils/pyobjects.py