python script to get abundances