Intelligent spam detection for Python