API.Parts: Flake8 fixes.