added raspberry_pi_nanpy.py for testing nanpy
changed try-catch blocks to print error object