Also add
```python
from pyon.core.exceptions import BadRequest
```
 to the top of table_loader.py it doesn't know about BadRequest.