Rolling Function In Python Geeks