msf in python