What are the one or two bumpy things on a steam locomotive just behind smoke stack?
Those are safety valves.
A safety valve is a pressure relief valve that automatically vents a fluid stream from a boiler, pressure vessel, or other system when the pressure exceeds a certain set point to prevent explosive rupture.