fix version parsing in spec files
added two tests for the version parse function
fix line too long errors pointed out by pep8