fixing python 2.6 incompatibilities

the metadata writer fix was copied from pulp_rpm
accepting a difference of behavior in tarfile from python 2.6 to 2.7
Merge pull request #973 from pulp/mhrivnak-fix-py26

fixing python 2.6 incompatibilities