Code for treating an Excel Spreadsheet as function which takes input and produces an ouput. The code requires that you have Excel installed on MS Windows machine with Python and the win32 library.