<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_crbox(self,spstring,form,output="",wavecat="INDEF", lowave=0,hiwave=30000):
 """Calcspec has a bug. We will use countrate instead, and force it to use a box function of uniform transmission as the obsmode."""


        range=hiwave-lowave
        midwave=range/2.0
        iraf.countrate(spectrum=spstring, magnitude="",
                       instrument="box(%f,%f)"%(midwave,range),
                       form=form,
                       wavecat=wavecat,
                       output=output)