Yeah that is the most likely.
My debug strategy would probably be to remove or set some parameters to the fixed known values until you are sure every component is working. You can also compute the log-likelihood by hand for a very small dataset to compare with the python output.