passing a function with two arguments to filter() in python,basetwo('10010')