fix pyrap dependency issue