Run Length Coding implementation at Python