Replace the doctest with direct call to main() in adapter.py

So we can get the regular output