Make the generator module independent of any Flask stuff