added version string to api paths.
pep8 fix
added unit tests
pep8