How to transform dictionary data into a string vector?
If you want output in any order, do this-

&gt;&gt;&gt; string_vector = ''
&gt;&gt;&gt; for k,v in record.items():
        string_vector += k + ' ' + v + ' '

&gt;&gt;&gt; string_vector = string_vector.rstrip(' ')
&gt;&gt;&gt; string_vector 
'first_name john last_name doe age 50'