Better attribute handling for inmate class