Make code more pythonic (6)

- sort imports
- do not use from lorem import *, that breaks static code analyzers
  like pyflakes or flake8