def read_code_blocks_from_md(md_path):
    """
    Read ```python annotated code blocks from a markdown file.

    Args:
        md_path (str): Path to the markdown fle

    Returns:
        py_blocks ([str]): The blocks of python code.

    """
    with open(md_path, "r") as f:
        full_md = f.read()

    md_py_splits = full_md.split("```python")[1:]
    py_blocks = [split.split("```")[0] for split in md_py_splits]
    return py_blocks