.py scripts for reference