args: rast, bandnum=1 - Returns the type of pixel for given band. If no bandnum specified, 1 is assumed.