Python server functions equivlantly to javascript.