Fixed exception when importing decorator in python 2.7