Add test for moxstubout

Add a test for moxstubout and update all of the python3-related
bits needed so the tests will pass there. Those changes are
based on Julien's work in https://review.openstack.org/#/c/55606

Change-Id: Ie7c41dbfbabfb3bcbd4e181b095aa2cf09345f5c