Python Struct Like Database Normalization Process