How To Properly Create A Class Instance Within A Function In Python

How To Properly Create A Class Instance Within A Function In Python