def module_check(module):
 ri = raw_input(('[-] python-%s not installed, would you like to install now? (apt-get install -y python-%s will be run if yes) [y/n]: ' % (module, module)))
 if (ri == 'y'):
  os.system(('apt-get install -y python-%s' % module))
 else:
  exit('[-] Exiting due to missing dependency')

def module_check ( module ) : ri = raw_input ( ( '[-] python-%s not installed, would you like to install now? (apt-get install -y python-%s will be run if yes) [y/n]: ' % ( module , module ) ) ) if ( ri == 'y' ) : os . system ( ( 'apt-get install -y python-%s' % module ) ) else : exit ( '[-] Exiting due to missing dependency' )
just for debian-based systems like kali and ubuntu .