Send a Python file object across a Unix domain socket