LIBCLOUD-335: EC2 IAM Profile are refactored for py2~3 and tested