Adding dump function to the ast module