Minor updates
Adding pure python magic implementation by Jason Petrone