Remove redundant import try block for sets
Simplify stopFactory.py