How To Modify A List In A Function In Python