gems and python