Update api.py to support retrieving pcap

Added code to support retrieving the 'dump.pcap' file from the API.