Remove LabelsFactory.to_structured in python modular example

NO need to use this method to do the cast since it is already handled
in Machine.i