Added python 3 compatiblity library