Added python 3 compatability using six module and __future__ absolute_import.