add resource (translating Scratch to Python)