Fixed the function definitions of the pretty print module