Add handlers for JOIN/PART
flake8 warnings in shell.py