Add api.py
Improve seafile_api