Clean up imports in recipe.py

Used pyflakes to find unused import statements that needed to be moved
out to other modules.