You're confusing PATH and PYTHONPATH. You need to run the following commands:-
export PATH=$PATH:/home/randy/lib/python
PYTHONPATH is used by the python interpreter to determine which modules to load.
PATH is used by the shell to determine which executables to run.
To know more about this you can have a look at the following video tutorial:-