python3 compatability and little things