Refactored to reduce duplication and ease reading
Refactored to reduce duplication and ease reading

The commands were SOOO long before this that they were really hard to
follow. While deciphering them I noticed a lot of duplication from
command to command and on each side of the ||'s. I pulled most of the
duplicated code out into some variables which provides two benefits:
1) a single place to update the common components
2) easier to read exec's

stankevich/puppet-python,stankevich/puppet-python