Increased timeout for directive
Cleaned up Python application code and Gravatar views