Refactored PyV8 context and loader