Updated directed_edge.py from source

Directed Edge still does not maintained a packaged version
of their Python bindings, so all this is, is a copy of the source
from:

  https://github.com/directededge/directed-edge-bindings/blob/master/Python/directed_edge.py