Housekeeping

- renamed "sources" to "modules"
- fixed a lot of style warnings from PyCharm