Update and rename test.py to trap.py

References:
http://my.oschina.net/u/182008/blog/93150