Python Generate Hash From File