Made code for python-y per mano3ms recommendation