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.
Merge pull request #5147 from s0undt3ch/develop

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