Before using python to connect to your FileMaker database you need to follow these steps
Download driver : https://support.claris.com/s/article/Software-Update-FileMaker-xDBC-client-drivers-for-FileMaker-1503692806454?language=en_US
Driver Location : C:/Users//Downloads/FileMaker Server 19.5.4/Extras/xDBC/ODBC Client Driver Installer Double clic on the 64 bit driver to install it.
Enable the ODBC/JDBC in File -> Sharing -> Enable ODBC/JDBC
Add Full Access for fmxdbc in File -> Manage -> Security -> Advanced Settings -> Extended Priviliges
Open the ODBC Data Source 64bit program
Type this into your terminal/cmd
pip install pyodbc