modules png py tiff py xpm py as long as the graphics directory is subdirectory inside our program' directory or is in the python pathwe can import any of these modules and make use of them we must be careful to ensure that our top-level module name (graphicsis not the same as any top-level name in the standard library so as to avoid name conflicts (on unix this is easily done by starting with an uppercase letter since all of the standard library' modules have lowercase names here' how we can import and use our moduleimport graphics bmp image graphics bmp load("bashful bmp"for short programs some programmers prefer to use shorter namesand python makes this possible using two slightly different approaches import graphics jpeg as jpeg image jpeg load("doc jpeg"here we have imported the jpeg module from the graphics package and told python that we want to refer to it simply as jpeg rather than using its fully qualified namegraphics jpeg from graphics import png image png load("dopey png"this code snippet imports the png module directly from the graphics package this syntax (from importmakes the png module directly accessible we are not obliged to use the original package names in our code for examplefrom graphics import tiff as picture image picture load("grumpy tiff"here we are using the tiff modulebut have in effect renamed it inside our program as the picture module in some situations it is convenient to load in all of package' modules using single statement to do this we must edit the package' __init__ py file to contain statement which specifies which modules we want loaded this statement must assign list of module names to the special variable __all__ for examplehere is the necessary line for the graphics/__init__ py file__all__ ["bmp""jpeg""png""tiff""xpm"