Python code for ASL instrument testing