[python] Converting numpy dtypes to native python types