Static route changes in service monitor.

Changes for ECMP handling of static routes.
Fix for instance IP allocation in API server
PEP8 fixes.