def get_attributes(var):
is_valid = partial(is_valid_in_template, var)<EOL>return list(filter(is_valid, dir(var)))<EOL>
Given a varaible, return the list of attributes that are available inside
of a template