Converting to Flask

Not ready yet!