Added tests for filter spec parsing
Added tests for signature generation
Make generate_signature Python 3 compatible