bitpos command implementation
fix tests
check for the server closing a connection that's compatible with Python 3

fixes #508
Merge pull request #501 from jettify/master

Added bitpos command
changelog
typo