Versioned commands consistent with python.

Fixes #1050
Fix functional test.
Merge pull request #1053 from pnasrat/1050-pep439-versioned-commands

Versioned commands consistent with python.