BUG: Fix blacklist datatype handling in python3