fix python 2.6 compatibility
Merge pull request #26 from thehyve/improve_opal_upload

fix python 2.6 compatibility