There is connection between Jewish holiday Purim rattles, carnival masks, hamantaschen cookies which symbolize its celebration.