fix for issue #46 where port number was being concatenated with the host...

... value.

added test for above condition
Added pyc files to the gitignore file