Convert User Input String Python Definition Instance