Run py.test before asking to push
Performance optimisations, bumped version number

More use of duck typing, removed typecasting.