get_parameters function

Get parameters from an object