Added a condition in case the client platform doesn't have python 'serial' module