human
Complete this python program:
def launch(interface, no_incoming=False, no_outgoing=False):
assistant
#Here is the Python program you requested.

    """pxshark -- prints packets
    """
    def cb(obj, data, sec, usec, length):
        p = pkt.ethernet(data)
        print p.dump()
    if interface.startswith('#'):
        interface = int(interface[1:])
        interface = PCap.get_device_names()[interface]
    p = PCap(interface, callback=cb, start=False)
    p.set_direction((not no_incoming), (not no_outgoing))
    p.start()