channels.py: make it more readeable

* removes two level of indentations
* explode a lot of code to make it more readeable
* backslash is redundant between brackets
* missing whitespace after ','
* arrays:
  - sort entries
  - use a trailing comma
  - explode each element on its own line