Folks may be interested in my Python to pull EmonCMS data into SQLite, which is on github: https://github.com/arc12/Emon2Sqlite.
I find it easier to use a database for analytical work than dealing with phpfina, which has a logging-time focussed design.