Python port of GifBot