[python] Get the last 4 characters of a string