fixes problem introduced with #93 - even not perfect (false positives if hasattr is in a string)