pub fn read_obj<T: DeserializeOwned, P: AsRef<Path> + Debug>(filename: P) -> T