Support passing Rats to Python