run pig from flask