Added numpy array conversion to darwin wrapper