examples: Avoid python3-specific syntax.

from __future__ import ... is ineffective when the example script is
exec-ed by sphinx, resulting in a SyntaxError when running under
python2.

Fixes gh-649.
Merge pull request #652 from josteinbf/local-binary-pattern-example

examples: Avoid python3-specific syntax.