When printing out a function, make sure that local and global symbols