def get_process_name(pid):
 return get_field(read_file(('/proc/%d/stat' % pid)), 1)[1:(-1)]

def get_process_name ( pid ) : return get_field ( read_file ( ( '/proc/%d/stat' % pid ) ) , 1 ) [ 1 : ( - 1 ) ]
get process name from pid .