Working replica of python muscle model code