corrected dict.values()[0] for python 3.x