Flask chat application with Redis