Changed server over to flask