Flask server for thelight project