this went on up until 500 or 400 bce , when the male dominated priesthood converted to monolatrism , the worship of one god among a bunch , and later , to monotheism , the belief that there is only one god .