Flask extension to create tree like rest apis based on objects tree