title: Read name of Package attribute and rename the current file with name of the package
body: <p>We have a requirement in python, where we have 50 txt files as below in a folder; what we need here is take out the name(com.paytm.mShop.android.install) of the package attribute and rename the file (ex:Paytm.txt) to packageName.txt(com.paytm.mShop.android.install.txt) for all the files in the given folder</p>
  
  <pre><code>Example : Paytm.txt
  &lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.paytm.android.install"&gt;
     .
     .
     ..
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I appreciate  all your help.</p>