Resolved UnboundLocalError traceback
Adding copy of ordereddict module for Python 2.6 compatability