use python instead of bash