Python3 compatibility

Python 3 does not have unicode type.
Added future import for print_function so that print is handled same in both 2 and 3.
Added future imports for division and absolute import for future compatiblity even though they are not currently needed.