with open('/root/Desktop/AndroidManifest.xml', 'r') as f:
    data = f.read()
dom = parseString(data)
nodes = dom.getElementsByTagName('uses-permission')
for node in nodes:
    pass
Parsing Android Manifest File to look for the uses-permission tag using python