In Karen Armstrong’s terrific book A History of God, she says that the ancient Israelites weren’t really monotheists. They believed in the existence of many gods: Baal, El, and so on. It’s just that Yahweh is the boss of all Gods. Hence the command “You shall have no other Gods before me.” It doesn’t say “You shall have no other Gods at all.”