Update set_dir_dev

removed iterator from list
Correction
Update pinselection

rewritten pinselection.py
Update readconfig

corrected a bug : is_accel referenced before assignement if no
accelerometer