use dict.setdefault instead of defaultdict
add make_portable.py