Mendeley API and related code for Python