fix pylint warnings

use relative imports

rename `fields` argument