Merged changes vmath generator module from py-source-sdk-2013.