Change update subnet to not save old policies

Causing issues with update of allocation pools

RM9104

Fixed some flake8 issues