Software can't ignore the fact that the scene has changed between exposures. The best you can do is use a stitching program that outputs as multiple layers (PTAssembler or PTGUI), get the stitch parameters as accurate as possible based of fixed objects, and then blend by hand to minimize artifacting. There is no real solution for your problem other than lot of painstaking manual labor.