Lower Function In Python Code