def getRspErrorCode(cls, rsp):
        if rsp['stat'] == "fail":
            return rsp.err[0]['code']

        return 0
This should return the next action to take from the given state
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/MachineLearning/query_imgs/flickrapi2.py/FlickrAPI.getRspErrorCode--crossover with--dataset/ETHPy150Open posborne/mlcollection/mlcollection/rl_base.py/Base_RL.select_action