upd python on numpy arrays