def fix_package_dirname(package_dirname):
 package_dirname = package_dirname.replace('-', '_')
 pre = ''
 if package_dirname[0].isdigit():
  pre = 'p'
 return (pre + package_dirname)

def fix_package_dirname ( package_dirname ) : package_dirname = package_dirname . replace ( '-' , '_' ) pre = '' if package_dirname [ 0 ] . isdigit ( ) : pre = 'p' return ( pre + package_dirname )
convert package_dirname to a valid package name string .