Convert User Input String Python Definition Range