Doing filesystem template loader compatible with python 3