autocompose: Use 'mv' rather than rename()

I want to be able to have the output on a separate partition from the
working set, so let's just call out to 'mv'.
Move main() to Python

Since the JS is legacy now, let's move main() into Python.