I dislike /usr/bin/python2, use /usr/bin/env python.
I think not needed py2, because this code should also work with py3.