Moved print_ast function to utils module