Fix issues when package depends on py2 and py3

Something weird is going on with packaging and having to depend
on python2 for some of the maas communication. Work around the nonlocal
keyword by using a dictionary instead.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Prep for 0.14 release

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>