Add future imports to maximise compatability

Use imports for __future__ to maximise compatability between Python2 and
Python3.