Python - Bot keeps crashing

Hi,

first of all do not include your oauth token anywhere public.

To keep the connection alive, respond to any PING you get with PONG. Relevant documentation.