this method is new in python 2.7, so it won't work on rhel6