python smmap