Replaced ' ' with 'None'
Merge pull request #242 from sthirugn/factoryfix

Replaced ' ' with 'None' in factory module
Fixing a few tests and locators.
Proceed with updating only if search successful
Merge pull request #243 from blrm/hostgroupfix

Fixes for Hostgroup, OS, and User tests
Fixed PEP8 line too long warning.
Merge pull request #246 from kbidarkar/fix-update-func

Proceed with updating only if search successful