Python scripts for server-side demod