Change StandardError to RuntimeError

Since built-in exception "StandardError" does not exist in the latest python version (at least in version 3.3), use RuntimeError instead (which exists from python2.6 to python3.4)
Merge pull request #1118 from yapbreak/patch-1

Change StandardError to RuntimeError