I created two modules which had some functions in them. I enclosed 2 functions in a single function in module1 and imported module1 in module2, The function often1 enclosed in compiler does'nt seem to execute.
MODULE 1
import time,thread
def class_often():
    while 1<2:
        time.sleep(5)
        print "Custom funtion not often runs."
def class_often1():
    while 1<2:
        time.sleep(2)
        print "Custom funtion often runs."
def compiler():
    class_often()
    class_often1()
MODULE2
import time,d,thread
def often():
    while 1<2:
        time.sleep(2)
        print "funtion not often runs."
def often1():
    while 1<2:
        time.sleep(2)
        print "Function often runs."
thread.start_new_thread(often,())
thread.start_new_thread(often1,())
thread.start_new_thread(d.compiler,())
 
    