Generic python scripts with broad applicability