type error bugfixed in rpigpio