Update ExcelExtraction_template.py

changed the code to reflect the comments by Quazi Farhan regarding sorting the final output and using extend instead of append.