use newstyle class for as_subprocess decorator