LineGenerationJSON.py updated so that it can read also BatchScrapMachineObjects