CT volume cropping

Hello. I want to crop(28x28x50) all the DCM (CT) volumes(150x150x50) in a folder, any python script for that?