Using python instead of bash