Base setup for flask