Created socket listener for python script