copying api testing to sub main from old sub main (sorry for deleting.
I figure the importing and analyzing should be in separate mains)