Use single function to read dictionary
Code cleanup and simplification
Use methods, formatting
Move python to alternatives directory
Add C versions