Fixed set_callback function to work as documented.

The function would return (None, 'Callback isn't a valid function') regardless of what was actually passed into
the function. It now either returns the callback, or return the error message.