Made load_examples type check more Python 2 compatible.