Follow hacking about import

This patch follows the rules about import in HACING.rst
https://github.com/openstack/savanna/blob/master/HACKING.rst#imports

 * reorder imports
 * Add missing blank lines before code

Change-Id: I9cd14fb3c3bf9567c6fee772a1b3188baf1bcbd9