The setup.py installs a command-line entry-point `rested` so this is not needed.  Just run:

    rested

or

    rested my_file.rst

to bring up the editor.