Python Filter Dictionary Based Content Analysis