The penalties that may be imposed under this Code, either as principal or accessory penalties, are deprivation of liberty, deprivation of other rights and fines.