Bug Fixes

Fixes for raspberry pi in __init__ function