Refactored code and added 4 more functions.

Refactored code to use future version of Python (>3.0) print function
and string formatting. Added 4 more functions. Fixed the test within
pyZDDE.py which can be executed by running running it.