detect python2 and send error