If this line is for future Python 3 compatibility, it should read

from http.client import ACCEPTED