cgi: sys.path.insert should be before importing mercurial
thanks to R. Burke
abort: repository a not found!255abort: error: Connection refused255abort: repository a not found!255abort: destination '../a' already exists255abort: repository a not found!255destination directory: qabort: destination 'q' already exists