remove cruft
refactor the reload code

Use python bultin reloading. Make helper functions for starting and
stopping.