working version. Updated to python 2.7.6