I think we should avoid `eval`ing user input. May be something like
```python
if cmd == 'purge':
   purge()
elif cmd == 'dump':
    dump()
else:
    raise ValueError("%s command not found" % (cmd,))