updated py script to get version numbers