port to 2.7 for boto