Python code to retrieve data from basespace