Computational implementations of Theory of Mind (ToM), the ability to attribute mental states to others, has been used to investigate a variety of issues. This includes the effect of framing effects on, or inter-species differences in, ability to do ToM (Devaine et al., 2014a, 2017), ToM in autists (d’Arc et al., 2018), or providing an explanation for the apparent limits on human ability to do ToM recursively (Devaine et al., 2014b). It has been implemented in the VBA package for Matlab (Daunizeau et al., 2014), but not in any free and open-source software. Therefore this thesis presents the Theory of Mind simulation using Python (tomsup) package.The tomsup package provides accessible tools for running agent-based models in a game theory context, and allows the implementation of a computational model of ToM, either in agent-based models or in interaction with a human player. The implementation of the ToM model was originally proposed by Yoshida et al. (2008), and was developed by drawing on the Free Energy Principle (Friston, 2010) to its current form as it is in Devaine et al. (2017), where it is generalized to any 2-player game which can be operationalized as a 2-by-2 payoff matrix. Importantly, the ToM implementation introduces a sophistication level k, which determines how many recursive simulations of its opponent it can perform, hereby assuming bounded rationality (Kahneman, 2003). An agent using the ToM model, denoted as k-ToM, uses a variational Bayes Laplace approximation (Daunizeau, 2017b) on a turn-by-turn basis to infer its opponent’s model parameters and sophistication level, based on which it predicts the opponent’s choice and acts accordingly.An agent-based model simulation using the competitive matching pennies game was done to perform a prelim- inary investigation of the behaviour of the k-ToM model. Most importantly, it was found that k-ToM’s prior beliefs about its opponent have a notable effect on its performance, even over many trials, warranting further research into how its priors should be formed. Various ways are suggested in which the tomsup package and the k-ToM model could be applied and developed further, as well as a discussion on how to make it broadly available, so as to scaffold future research using computational ToM models.