The convention is for tinycore extensions to be compiled to /usr/local
This means that perl and python scripts need to reference /usr/local/bin/perl or /usr/local/bin/python
Alternatively, "/usr/bin/env perl" or "/usr/bin/env python" can be used.
In the case of python, the python(-2.7.x) extension contains /usr/local/bin/python, but the python3.6(.x) extension does not. This is done in order to avoid accidently using the python3.6 extension if it was loaded before the python extension.
If you want to sure of which version of python is used, it is better to use /usr/local/bin/python2.7 or /usr/local/bin/python3.6