fixed #2806:  Change sys["capabilities"] to sys.capabilities.
Merge pull request #214 from xingsenma/master

fixed #2806: Change sys["capabilities"] to sys.capabilities.