If I'm understanding you correctly, you can just loop through the dictionaries in the array, and then you can loop through the keys in each dictionary. Something like this might work:
def convertData(data):
return [[dic[key] for key in dic] for dic in data]