Fixed import line and renamed dumps funtion