started python3 compatability
using six library for backwards compatability now
refactoring to become compatible with python 3
python3/2 compatability seems to work fine