Converted str to bytes for python3 compatibility
Added packet seperation and started login