Add locals option to runPython and runPythonAsync. 
### Checklists

- [x] Add a [CHANGELOG](https://github.com/pyodide/pyodide/blob/main/docs/project/changelog.md) entry
- [x] Add / update tests
- [x] Add new / update outdated documentation

---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

### To Reproduce

<!-- Minimal code example to reproduce the bug. -->

### Expected behavior

<!-- FILL IN -->

### Environment

- Pyodide Version<!-- (e.g. 1.8.1) -->:
- Browser version<!-- (e.g. Chrome 95.0.4638.54) -->:
- Any other relevant information:

<!-- If you are building Pyodide by yourself, please also include these information: -->

<!--
- Commit hash of Pyodide git repository:
- Build environment<!--(e.g. Ubuntu 18.04, pyodide/pyodide-env:19 docker)- ->:
-->

### Additional context

<!-- Add any other context about the problem here. -->

---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

### To Reproduce

<!-- Minimal code example to reproduce the bug. -->

### Expected behavior

<!-- FILL IN -->

### Environment

- Pyodide Version<!-- (e.g. 1.8.1) -->:
- Browser version<!-- (e.g. Chrome 95.0.4638.54) -->:
- Any other relevant information:

<!-- If you are building Pyodide by yourself, please also include these information: -->

<!--
- Commit hash of Pyodide git repository:
- Build environment<!--(e.g. Ubuntu 18.04, pyodide/pyodide-env:19 docker)- ->:
-->

### Additional context

<!-- Add any other context about the problem here. -->
