try to search a more pythonic way to extract parts from raw datas