Support, you have a param '--filename'. Than you can get its value this way:
import sys print sys.argv[sys.argv.index('--filename') + 1]If you run
python script.py --filename name.wav
it prints name.wav
.