In Python, you will need to import a library that contains a sleep (or similar name) function.
The most basic library that contains a sleep function is time but there are lots of others.
The below code sleeps for 3 seconds.
import time
print ("Start : %s" % time.ctime())
time.sleep( 3 )
print ("End : %s" % time.ctime())