In Bolivia the railroads are in disrepair and poorly maintained and trains must go slow so that the operator can look at the rails ahead and stop in time if they look deformed. Then the train employees walk along to check the rails conditions. The train then proceeds very slowly across the section with deformed rails.
Bolivian trains also often stop for llamas on the tracks :)