python Listener socket which active forever

Here is my code I want create Pure Socket which listen on given port without closing if it has no connection then also it should be always on and active.

Main.py

from ServerListner import LazyConnection

def printme(str):
    "This prints a passed string into this function"
    print str
    return

def set_keepalive_linux(conn, after_idle_sec=1, interval_sec=3, max_fails=5):

        #Set TCP keepalive on an open socket.

        #It activates after 1 second (after_idle_sec) of idleness,
        #then sends a keepalive ping once every 3 seconds (interval_sec),
        #and closes the connection after 5 failed ping (max_fails), or 15 seconds

        conn.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
        conn.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, after_idle_sec)
        conn.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, interval_sec)
        conn.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, max_fails)

print "Hello!!!"

paragraph = "This is a paragraph. It is made up of multiple lines and sentences."

print paragraph

printme('hello world')

conn = LazyConnection("", 5002)

conn.startListening()

set_keepalive_linux(conn)

raw_input('\n\nPress the enter key to exit.')

ServerListner.py

#!/usr/bin/python
from SocketServer import BaseRequestHandler, ThreadingTCPServer

import array
import socket

class EchoHandler(BaseRequestHandler):

    def handle(self):
        print('Got connection from', self.client_address)
        while True:
            returnmsg = self.request.recv(8192)         

            if not returnmsg:
                break
            print returnmsg


class LazyConnection:

    def __init__(self, address, port):

        self.serv = ThreadingTCPServer((address, port), EchoHandler)


    def __enter__(self):
        return self.serv

    def startListening(self):
        self.serv.serve_forever()

    def __exit__(self, exc_ty, exc_val, tb):
        self.serv.shutdown()
        self.serv.server_close()
        self.serv = None