Missing import and some formatting love to `salt.{modules,states}.eselect`

* Add missing import.
* Use function alias in order not to shadow `set`
* Simplify some reading logic
* PEP-8 and formatting fixes.