add some exception handling and specify python2