import sys
sys.path.append('/usr/local/lib/python3.4/site-packages/')

from warc_dedup import deduplicate


def main():
    if len(sys.argv) == 1:
        raise Exception('Please provide the WARC file as argument.')
    deduplicate.Warc(*sys.argv[1:]).deduplicate()

if __name__ == '__main__':
    main()


[(2, 'sys.path.append', 'sys.path.append', False, 'import sys\n'), (10, 'warc_dedup.deduplicate.Warc', 'deduplicate.Warc', False, 'from warc_dedup import deduplicate\n')]