Update server.py

changed the fuctionality of flavors to suit the new yaml configuration