def create_temp_profile(scan_profile):
 scan_profile_file = os.path.join(tempdir, ('%s.pw3af' % uuid4()))
 file(scan_profile_file, 'w').write(scan_profile)
 return (scan_profile_file, tempdir)

def create_temp_profile ( scan_profile ) : scan_profile_file = os . path . join ( tempdir , ( '%s.pw3af' % uuid4 ( ) ) ) file ( scan_profile_file , 'w' ) . write ( scan_profile ) return ( scan_profile_file , tempdir )
writes the scan_profile to a file .