minor improvements to checking args, optimizing looping through tables
minor improvements to checking args, optimizing looping through tables

lepinkainen/pyfibot,huqa/pyfibot,lepinkainen/pyfibot,aapa/pyfibot,aapa/pyfibot,huqa/pyfibot,EArmour/pyfibot,EArmour/pyfibot