added print_object helper function to console log objects during template render