<filename>base/print_ntp.py
import ntplib
from time import ctime
from cherrypy.lib.xmlrpcutil import respond

def print_time():
    ntp_client = ntplib.NTPClient()
    response = ntp_client.request('pool.ntp.org')
    print ctime(response.tx_time)
    
if __name__ == '__main__':
    print_time()

<filename>base/print_ntp.py
import ntplib
from time import ctime
from cherrypy.lib.xmlrpcutil import respond

def print_time():
    ntp_client = ntplib.NTPClient()
    response = ntp_client.request('pool.ntp.org')
    print ctime(response.tx_time)
    
if __name__ == '__main__':
    print_time()
