use grp module instead of parsing groups file. #401
use pwd instead of parsing passwd file. #401