Reformat and cleanup channels.py