bitwise -> boolean operators, rm unused imported, typofix in discretize.get_input