Please answer the following question: Here's a complex question that requires someone to reason about the input, can you answer it? Who were the two parties fighting in the war where Kajiwara Heima served as karo?
A:
Tokugawa shogunate and those seeking to return political power to the Imperial Court