Update adapter.py

Revert