Added flask and irc bot threading