Update for python 3

Update rational and quaternion dtypes for python 3