use a singleton pattern for the core in python scripts

git-svn-id: http://vapoursynth.googlecode.com/svn/trunk@443 f9120d27-2007-6f97-8312-0f4ebfa7710f