import post: Send a HEAD request in Python