Batch retort pyrolysis of solid municipal wastes