Write slurp in py