Fixed the groupchat issues; forgot to set the type property.
PEP8 fixes.