LYFT-17129 - cherry pick deregister, register and get_instance_health me...

...thods
This is fine, but another way to this is:

```python
import types
if isinstance(instances, types.StringTypes):
```