Implementing Checksum Using Python Help