added exception if run under python 3