from twisted.web.static import File
from twisted.web.resource import Resource

def resource():
    resource = Resource()
resource.putChild('', File('xkcd/sandwich.png'))
return resource
TCP client/server with sockets, server sending files to clients, client hangs, Python