Python Create Hash From String