bpy.data.textures.new() now has a type argument since changing the type after forces the hacky use of recast_type().