Simple IRC bot built from scratch in Python