I thought I'd quickly write one, so I committed it to brat repo. Pull the newest master from GitHub, and you will find it under `tools/bioes2standoff.py`. Then I found there already was something similar in `tools`. Mine is probably more permissive and easier to use, though. I just hacked this together in like an hour, so if you find any errors or problems, please let me know. You can convert multiple documents like this:
for file in bio/*.txt; do tools/bioes2standoff.py "$file" "${file%.txt}.bio" "${file%.txt}.ann"; done
or, if that is too inefficient, from Python:
from tools.bioes2standoff import convert
for ...:
convert(text_file, bio_file, ann_file)