Using the triple quote approach will include the new lines in the error - don't do that. Use something like this:

<pre>
    raise MissingExternalDependencyError("Install bwa and correctly set "
                                         "the file path to the program if "
                                         "you want to use it from Biopython.")
</pre>