python convert dictionary values to numpy array