I don't think such thing is possible in sleep mode, meanwhile you can prevent your computer from going into standby mode by referring to this :
The main idea is using SetThreadExecutionState function, for example, in your python terminal you can run :
import ctypes
ctypes.windll.kernel32.SetThreadExecutionState(0x80000002)
input('{Press enter to exit}')
ctypes.windll.kernel32.SetThreadExecutionState(0x80000000)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…