Python Automatically-fill Resources