get_variables function

Extract variable names from an object