Update resource.py

PROTOCOL_TLSv1_2 doesn't exist in python 2.6