Append python version detector

Slight modifications from Jim Bosch for more standard language in
build system language.
Revise example/wrap.cpp for python3
Merge pull request #39 from termoshtt/cmake_python3

(with minor modification from Jim Bosch)