perforator.py: generalized for different platforms
added config.py, the common configuration point for all platform