some of my python code to feed data into cube for viz