code update on mango, better python support.