and the server-side examples in as we'll see in in bigger termstools like the urllib request urlopen function allow scripts to both download remote files and invoke programs that are located on remote server machineand so serves as useful tool for testing and using web sites in python scripts in we'll also see that urllib parse includes tools for formatting (escapingurl strings for safe transmission ftp get and put utilities when present the ftplib interfaces in python classesstudents often ask why programmers need to supply the retr string in the retrieval method it' good question--the retr string is the name of the download command in the ftp protocolbut ftplib is supposed to encapsulate that protocol as we'll see in momentwe have to supply an arguably odd stor string for uploads as well it' boilerplate code that you accept on faith once you see itbut that begs the question you could propose patch to ftplibbut that' not really good answer for beginning python studentsand it may break existing code (the interface is as it is for reasonperhaps better answer is that python makes it easy to extend the standard library modules with higher-level interfaces of our own--with just few lines of reusable codewe can make the ftp interface look any way we want in python for instancewe couldonce and for allwrite utility modules that wrap the ftplib interfaces to hide the retr string if we place these utility modules in directory on pythonpaththey become just as accessible as ftplib itselfautomatically reusable in any python script we write in the future besides removing the retr string requirementa wrapper module could also make assumptions that simplify ftp operations into single function calls for instancegiven module that encapsulates and simplifies ftplibour python fetchand-play script could be further reduced to the script shown in example - --essentially just two function calls plus password promptbut with net effect exactly like example - when run example - pp \internet\ftp\getone-modular py #!/usr/local/bin/python "" python script to download and play media file by ftp uses getfile pya utility module which encapsulates ftp step ""import getfile from getpass import getpass filename 'monkeys jpgfetch with utility getfile getfile(file=filenamesite='ftp rmi net' client-side scripting