Contact the Canadian embassy or high commission in your country and make an application for a temporary resident visa - a regular visitor's visa. Explain your circumstances, and provide proof both of the funeral and that you will leave Canada afterwards. Then try to talk to someone there and ask for speedy processing and humanitarian considerations.
May not work, but it is worth a try.