Is that necessarily contradictory, though?  It seems quite likely that the North Koreans opposed the Japanese to get rid of the oppressor rather than for ideological reasons.   They could quite easily have internalized the ideology of their enemy while they were fighting them.