tk fix thanks to Guenter Kreidl an revert np dtypes compatible with pypy numpy