Fix crash when module is missing

I had a problem on a host where numpy is missing (python 2.7.3). Websockify would throw the following exception
```
self.msg("WARNING: no '%s' module, %s", mod, msg)
NameError: name 'self' is not defined
````

``self.msg`` is not available when checking the imports.