using subprocess to call binica