What role did local communist parties play in the struggle for Indian independence? Did they attempt to ally with other nations in the process?