Update compat.py

import datetime : unused
from urllib.parse import urlencode : double importded
from urllib import urlencode : double imported
Merge branch 'dslackw-patch-4' into develop

* dslackw-patch-4:
  Update compat.py