classify system.py

I classified all of codes of system.py.