adding helper functions, Mason-parsing Python script