make examples work with 2.7