Pythonic dynamic sprite generator