Fix PEP8 violation and apply new plone.api import best practice.