How to make a fake socket object from file or string in python

Published --