Avoid deadlocks when running tests/test_api_base.py::TestCreateCopy::test Instead of calling the library function, spawn bmaptool inside a new Python interpreter with subprocess.check_call() to avoid the deadlocks.
Johannes Schauer Marin Rodrigues <josch@debian.org>