Replace ruby syntax in python day_of_week