Make sith.py random work with files