Now works in python, reads card and prints to log file