We do not have configurable filetypes for PHP-FPM+Nginx apps at this time. I'll open an feature request to see if we can implement that for you.
Your Python files will not execute on the server under PHP-FPM, no concern there.
security.limit_extension
is set at the default value (.php and .phar).