Merge api.py into web.py
Update import.