Working code for new SO COOL site using Flask