Add support for Python 3

This uses the six library to add support for using policies under
Python 3.