Simplifying the Parallelization of Scientific Codes by a Function-Centric Approach in Python