workaround for python3 Fractions with numpy 1.8.2