mock random.randrange and random.choice
ignore swp files