Rats hate the smell of tobaccco. Keeping small pouches of tobacco in engine bay could help repel them. Other things rats don't like to smell are peppermint oil, Naphthalene balls, Cat/Dog Hairs, and red pepper.