Create adapter.py