try to fix issue #2 by replacing all XPath queries for attributes were replaced by if-statements in python