* lib/am/python.am (install-%DIR%PYTHON, uninstall-%DIR%PYTHON): Have the basename step optional and use %NDIR% instead of %DIR% in filenames in order to support 'nobase_'.