OS-535/536 Fix flake8 issues and remove unused APIs

This fixes flake8 issues introduced by OS-532.
Includes unused method cleanup from base.py and neutron_ipam.py.

Change-Id: I8e19391a62d7848f93b43fe37a3b8a912ef97f8e