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

Replaced ' ' with 'None' in factory module