ignore TypeErrors while checking for rpcmethods.

If an app uses `unicode_literals` from `__future__` and has
strings in its `__init__` import fails.

i.e. [django-debug-toolbar](https://github.com/django-debug-toolbar/django-debug-toolbar/blob/master/debug_toolbar/__init__.py)