fixed import check_output, because python2.6