forked and readme modified from Heroku's python websocket example