updated py script in order to generate the information needed by our perl scripts