Python3 support

Added Python2/3 compatability layer through six. Tests passes on python 2.7, 3.2, 3.3.