Update file (helpers.py): Add is_primitive function to check if a certain value is in Python's built-in types.
Update function (helpers.py): Update to_json to use is_primitive function to check and convert non built-in Python types to either an empty string or string.
Update function (router.py): Update router function. Remove if statements and simply use the app.route method.