h_freq can't be None here. Also, I was wondering if it would make sense to include bandstop into Raw.filter. We could do bandstop if l_freq > h_freq (or maybe someone has an idea for a more beautiful interface.. ).