api: disable warnings about wildcard imports
api: disable warning messages about unused argument
api: catch specific exception rather than bare except
api: fix unassigned expressions