runPython(); calls python cmd tools by system call function and parses output to make them can be used in php.
Most functions related to retrieving data should be implemented in python cmd tools. Web framework only has a role to display charts based on what the functions provide.